package com.zny.sescore.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.palmdoctor.mb.base.model.RuleFactor;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 疾病评估得分模型
 *
 * @TableName t_assess_model_rule
 */
@TableName(value = "t_assess_model_rule")
@Data
public class AssessModelRule extends BaseModel<AssessModelRule> {
    /**
     * 主键
     */
    @ApiModelProperty("主键")
    @TableId(value = "rule_id", type = IdType.AUTO)
    private Integer ruleId;

    /**
     * 项目Id
     */
    @ApiModelProperty("项目Id")
    private Integer itemId;

    /**
     * 得分
     */
    @ApiModelProperty("得分")
    private BigDecimal score;

    /**
     * 评估表达式
     */
    @ApiModelProperty("评估表达式")
    private String scoreExp;

    /**
     * 评估表达式JSON
     */
    @ApiModelProperty("评估表达式JSON")
    private String scoreExpJson;

    /**
     * 规则列表
     */
    @TableField(exist = false)
    @ApiModelProperty("规则列表")
    private List<RuleFactor> expList;
}